<?php /* Smarty version 2.6.26, created on 2012-05-12 14:52:51
         compiled from menus%5Cmain_menu.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'replace', 'menus\\main_menu.tpl', 6, false),)), $this); ?>
<!-- main menu block -->

<ul id="main_menu">
	<?php $_from = $this->_tpl_vars['main_menu']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['mMenu'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['mMenu']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['mainMenu']):
        $this->_foreach['mMenu']['iteration']++;
?>
		<li>
			<a <?php if ($this->_tpl_vars['page'] == $this->_tpl_vars['mainMenu']['Path']): ?>class="active"<?php endif; ?> <?php if ($this->_tpl_vars['mainMenu']['No_follow']): ?>rel="nofollow" <?php endif; ?>title="<?php echo $this->_tpl_vars['mainMenu']['title']; ?>
" href="<?php if ($this->_tpl_vars['mainMenu']['Page_type'] != 'external'): ?><?php echo $this->_tpl_vars['rlBase']; ?>
<?php endif; ?><?php if ($this->_tpl_vars['pageInfo']['Controller'] != 'add_listing' && $this->_tpl_vars['mainMenu']['Controller'] == 'add_listing' && ! empty ( $this->_tpl_vars['category']['Path'] ) && ! $this->_tpl_vars['category']['Lock']): ?><?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['mainMenu']['Path']; ?>
/<?php echo $this->_tpl_vars['category']['Path']; ?>
/<?php echo $this->_tpl_vars['steps']['plan']['path']; ?>
.html<?php else: ?>?page=<?php echo $this->_tpl_vars['mainMenu']['Path']; ?>
&amp;step=<?php echo $this->_tpl_vars['steps']['plan']['path']; ?>
&amp;id=<?php echo $this->_tpl_vars['category']['ID']; ?>
<?php endif; ?><?php else: ?><?php if ($this->_tpl_vars['mainMenu']['Page_type'] == 'external'): ?><?php echo $this->_tpl_vars['mainMenu']['Controller']; ?>
<?php else: ?><?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php if ($this->_tpl_vars['mainMenu']['Path'] != ''): ?><?php echo $this->_tpl_vars['mainMenu']['Path']; ?>
.html<?php echo $this->_tpl_vars['mainMenu']['Get_vars']; ?>
<?php endif; ?><?php else: ?><?php if ($this->_tpl_vars['mainMenu']['Path'] != ''): ?>?page=<?php echo $this->_tpl_vars['mainMenu']['Path']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['mainMenu']['Get_vars'])) ? $this->_run_mod_handler('replace', true, $_tmp, '?', '&amp;') : smarty_modifier_replace($_tmp, '?', '&amp;')); ?>
<?php endif; ?><?php endif; ?><?php endif; ?><?php endif; ?>">
				<span class="left">&nbsp;</span>
				<span class="center"><?php echo $this->_tpl_vars['mainMenu']['name']; ?>
</span>
				<span class="right">&nbsp;</span>
			</a>
		</li>
	<?php endforeach; endif; unset($_from); ?>
</ul>

<!-- main menu block end -->